Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

quat.h

Go to the documentation of this file.
00001 /* -*- c -*- */
00002 #ifndef INCLUDED_LIB3DS_QUAT_H
00003 #define INCLUDED_LIB3DS_QUAT_H
00004 /*
00005  * The 3D Studio File Format Library
00006  * Copyright (C) 1996-2001 by J.E. Hoffmann <je-h@gmx.net>
00007  * All rights reserved.
00008  *
00009  * This program is  free  software;  you can redistribute it and/or modify it
00010  * under the terms of the  GNU Lesser General Public License  as published by 
00011  * the  Free Software Foundation;  either version 2.1 of the License,  or (at 
00012  * your option) any later version.
00013  *
00014  * This  program  is  distributed in  the  hope that it will  be useful,  but
00015  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00016  * or  FITNESS FOR A  PARTICULAR PURPOSE.  See the  GNU Lesser General Public  
00017  * License for more details.
00018  *
00019  * You should  have received  a copy of the GNU Lesser General Public License
00020  * along with  this program;  if not, write to the  Free Software Foundation,
00021  * Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00022  *
00023  * $Id: quat.h,v 1.1 2005/03/07 11:16:26 Assassin Exp $
00024  */
00025 
00026 #ifndef INCLUDED_LIB3DS_TYPES_H
00027 #include <lib3ds/types.h>
00028 #endif
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 extern LIB3DSAPI void lib3ds_quat_zero(Lib3dsQuat c);
00035 extern LIB3DSAPI void lib3ds_quat_identity(Lib3dsQuat c);
00036 extern LIB3DSAPI void lib3ds_quat_copy(Lib3dsQuat dest, Lib3dsQuat src);
00037 extern LIB3DSAPI void lib3ds_quat_axis_angle(Lib3dsQuat c, Lib3dsVector axis, Lib3dsFloat angle);
00038 extern LIB3DSAPI void lib3ds_quat_neg(Lib3dsQuat c);
00039 extern LIB3DSAPI void lib3ds_quat_abs(Lib3dsQuat c);
00040 extern LIB3DSAPI void lib3ds_quat_cnj(Lib3dsQuat c);
00041 extern LIB3DSAPI void lib3ds_quat_mul(Lib3dsQuat c, Lib3dsQuat a, Lib3dsQuat b);
00042 extern LIB3DSAPI void lib3ds_quat_scalar(Lib3dsQuat c, Lib3dsFloat k);
00043 extern LIB3DSAPI void lib3ds_quat_normalize(Lib3dsQuat c);
00044 extern LIB3DSAPI void lib3ds_quat_inv(Lib3dsQuat c);
00045 extern LIB3DSAPI Lib3dsFloat lib3ds_quat_dot(Lib3dsQuat a, Lib3dsQuat b);
00046 extern LIB3DSAPI Lib3dsFloat lib3ds_quat_squared(Lib3dsQuat c);
00047 extern LIB3DSAPI Lib3dsFloat lib3ds_quat_length(Lib3dsQuat c);
00048 extern LIB3DSAPI void lib3ds_quat_ln(Lib3dsQuat c);
00049 extern LIB3DSAPI void lib3ds_quat_ln_dif(Lib3dsQuat c, Lib3dsQuat a, Lib3dsQuat b);
00050 extern LIB3DSAPI void lib3ds_quat_exp(Lib3dsQuat c);
00051 extern LIB3DSAPI void lib3ds_quat_slerp(Lib3dsQuat c, Lib3dsQuat a, Lib3dsQuat b, Lib3dsFloat t);
00052 extern LIB3DSAPI void lib3ds_quat_squad(Lib3dsQuat c, Lib3dsQuat a, Lib3dsQuat p, Lib3dsQuat q,
00053   Lib3dsQuat b, Lib3dsFloat t);
00054 extern LIB3DSAPI void lib3ds_quat_tangent(Lib3dsQuat c, Lib3dsQuat p, Lib3dsQuat q, Lib3dsQuat n);
00055 extern LIB3DSAPI void lib3ds_quat_dump(Lib3dsQuat q);
00056 
00057 #ifdef __cplusplus
00058 };
00059 #endif
00060 #endif
00061 

Generated on Mon Sep 12 19:58:55 2005 for Destiny3D by doxygen1.3-rc3